-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: simplify http benchmarker regular expression #38206
Conversation
@@ -173,7 +173,7 @@ class H2LoadBenchmarker { | |||
} | |||
|
|||
processResults(output) { | |||
const rex = /(\d+(?:\.\d+)) req\/s/; | |||
const rex = /(\d+\.\d+) req\/s/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the original intent was to handle integer values? I don't know if that's necessary, please disregard if we know that doesn't happen.
const rex = /(\d+\.\d+) req\/s/; | |
const rex = /(\d+(?:\.\d+)?) req\/s/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it shouldn't work with integers. The h2load output is something like "finished in 233.18s, 0.43 req/s, 105B/s" his docs
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: nodejs#38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Landed in 36035e0 |
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: #38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: nodejs#38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: nodejs#38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
A non-capturing group inside a capturing group has no effect. Simplify the regular expression. PR-URL: #38206 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
A non-capturing group inside a capturing group has no effect. Simplify
the regular expression.